from channels.routing import ProtocolTypeRouter
from django.urls import path
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
from managersys.customers import EchoConsumer
from managersys.customers import ChatConsumer

application = ProtocolTypeRouter({
    # (http->django views is added by default)
    "websocket": AuthMiddlewareStack(
        URLRouter([
            # URLRouter just takes standard Django path() or url() entries.
            path("websockettest/", ChatConsumer),
            path("websocketvideo/", ChatConsumer),
        ]),
    ),
})
